package com.ajhlp.app.phoneDetailQuery.rule;

import org.codehaus.jackson.annotate.JsonIgnore;

public class RuleItem {

	private RuleItemType type;
	@JsonIgnore
	private int sameItemIndex;
	private int index;
	
	public RuleItem(){}
	
	public RuleItem(RuleItemType type,int index){
		setType(type);
		setIndex(index);
	}
	
	public RuleItem(RuleItemType type,int index,int same){
		setType(type);
		setIndex(index);
		setSameItemIndex(same);
	}

	public RuleItemType getType() {
		return type;
	}

	public void setType(RuleItemType type) {
		this.type = type;
	}

	public int getSameItemIndex() {
		return sameItemIndex;
	}

	public void setSameItemIndex(int sameItemIndex) {
		this.sameItemIndex = sameItemIndex;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "[" + index + "]" + type + "[" + sameItemIndex + "]";
	}
	
	
}
